{include file=$header_start}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/registration.css">
<script src="{$siteroot}/includes/js/login.js" type="text/javascript"></script>
{/strip}
{literal}
<script type="text/javascript">
function isSpace(e)                                                                   //Check for Blank spaces
{
	if(navigator.appName=="Microsoft Internet Explorer")
	{
		if(e.keyCode==32)	
		{
			return false;
		}
	}
	if(navigator.appName=="Netscape")
	{
		if(e.which==32)	
		{
			return false;
		}
	}
	return true;
}
</script>
{/literal}


{include file=$header_end}

<!-- MIDDLE CONTAIN GOES HERE -->
<section class="inner_wrapper">
	<section class="middle_portion">
	<h1 class="registr_head">Profile Login </h1>
   
   
  <section style="margin-top:20px;">   
     <section class="lF" style="width:475px;">
	 <form method="post" action="" name="frmlogin" id="frmlogin">        
     <section style="height:60px;">
    {if $successMsg neq ''}
    <section id="msg" style="padding:10px;width:420px;">{$successMsg}</section>
     {/if}
    
    {if $errorMsg}<div style="padding:5px;"><div class="error_msg" style="width:420px;" > <span>{$errorMsg}</span></div></div>{/if}  
    </section>
	<section class="login_box_container lF">
    <section class="login_form no_bor lF" >
    <h3>Are you a supplier?</h3><br />
    	<dl style="float:none!important;">
        	<dt>Email</dt>
            <dd><input type="text" class="input" id="unm" name="unm" {if $User_name neq ''} value="{$User_name}" {/if} /></dd>
            <section class="clear"></section>
        </dl><br />
        <dl  style=" float:none!important;">
        	<dt>Password</dt>
            <dd><input type="password" class="input" id="pw" name="pw" maxlength="15" {if $User_pass neq ''} value="{$User_pass}" {/if} onkeypress="return isSpace(event);" /></dd>
            <section class="clear"></section>
        </dl><br />
        <input type="checkbox"  name="rememberMe" id="rememberMe" value="1">Remember me <em>(This is not recommended for shared computers)</em><br /><br />
        <section>
        	<span class="for_pass"><a href="{$siteroot}/signin/forgotpasswod/">Forgotten your password?</a></span>
        	<section style="margin:15px 50px 0px 0px;"><input type="submit" name="signin" class="blue_btn rF" value="Supplier Login"></section>
        </section>
        <section class="clear"></section>
        
        <section><span class="lF"><a href="{$siteroot}/register/">Are you new user?</a></span></section>
    </section>
    <section class="clear"></section>
    </section>
     </form>
    </section>
    
     <section class="rF" style="width:475px;">
     <form method="post" action="" name="frmloginhome" id="frmloginhome">
     <section style="height:60px;">
     {if $errorMsgHome}<div style="padding:5px; display:block; height:35px;"><div class="error_msg" > <span>{$errorMsgHome}</span></div>
     </div>{/if}  
     </section>
     
     	<section class="login_box_container rF">
     <section class="login_form no_bor" >
	    <h2>Are you a client?</h2><br />
    	<dl style=" float:none!important;">
        	<dt>Email</dt>
            <dd><input type="text" class="input" id="username" name="username" {if $Homeowner_User_name neq ''} value="{$Homeowner_User_name}" {/if} /></dd>
            <section class="clear"></section>
        </dl><br />
        <dl  style=" float:none!important;">
        	<dt>Password</dt>
            <dd><input type="password" class="input" id="password" name="password" maxlength="15" {if $Homeowner_User_pass neq ''} value="{$Homeowner_User_pass}" {/if} onkeypress="return isSpace(event);" /></dd>
            <section class="clear"></section>
        </dl><br />
        <input type="checkbox"  name="rememberMehomeowner" id="rememberMehomeowner" value="1">Remember me <em>(This is not recommended for shared computers)</em><br /><br />
        <section>
        	<span class="for_pass"><a href="{$siteroot}/signin/forgotpasswod/">Forgotten your password?</a></span>
        	<section style="margin:15px 22px 0px 0px;"><input type="submit" name="signinhomeowner" class="org_btn rF" value="Client Login"> <section class="clear"></section></section>
        </section>
        <section class="clear"></section>
        
        <section><span class="lF"><a href="{$siteroot}/">Are you new user?</a></span></section>
    </section>
    </section>
     <section class="clear"></section>
    </form>
     </section>
     <section class="clear"></section>
  </section>   
</section>
</section>

<!-- FOOTER PORTION GOES HERE -->
{include file=$footer}


{if $smarty.get.id1 eq 'msg' && $smarty.get.id2 eq 'open'}
{strip}
<script type="text/javascript" language="javascript" src="{$siteroot}/includes/js/ibox/ibox.js"></script>
{/strip}

{literal}
	<script type="text/javascript">	
	   	iBox.showURL(SITEROOT+'/modules/signin/firsttime.php','Update Your Profile',{ 
			    width: '500px',
				height: '300' 
				
			});
	</script>
    {/literal}
{/if}